package me.keiwu.user.dao;

import me.keiwu.user.domain.Item;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * Created by kei on 25/11/2017.
 */
public interface ItemDao extends JpaRepository<Item, Integer>, JpaSpecificationExecutor<Item> {

    List<Item> findAllByItemTypeAndIsDelFalse(Integer itemType);

}
